package com.cyj.dream.admin.service.system;

import com.cyj.dream.admin.model.system.SysPermission;

import java.util.List;

/**
 * @Description: 系统权限类业务层
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.service
 * @Author: ChenYongJia
 * @CreateTime: 2021-04-02 09:25
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface SysPermissionService {

    /**
     * 根据用户id查询用户权限
     * @param sysUserId 
     * @return java.util.List<com.dream.DreamChardonnay.model.system.SysPermission>
     * @date 2021/4/2 9:28
     * @author ChenYongJia
     * @version 1.0
     */
    List<SysPermission> findByUserId(Long sysUserId);

    /**
     * 查询当前系统所有权限信息
     *
     * @return java.util.string
     * @date 2021/5/18 11:21
     * @author ChenYongJia
     * @version 1.0
     */
    List<String> queryAll();

    /**
     * 批量插入权限数据
     *
     * @param pList 系统权限集合
     * @return boolean
     * @date 2021/5/18 11:39
     * @author ChenYongJia
     * @version 1.0
     */
    boolean batchInsert(List<SysPermission> pList);
    
}
